package com.matrix.yukun.matrix.main_module.wallpaper.adapter;

import android.widget.ImageView;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.matrix.yukun.matrix.R;
import com.matrix.yukun.matrix.main_module.entity.WallpaperInfo;
import com.matrix.yukun.matrix.util.glide.GlideUtil;

import java.util.List;

public class RVWallpaperMessageAdapter extends BaseQuickAdapter<WallpaperInfo, BaseViewHolder> {

    public RVWallpaperMessageAdapter(int layoutResId, @Nullable List<WallpaperInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, WallpaperInfo item) {
        ImageView imageView=helper.getView(R.id.iv_image);
        GlideUtil.loadRoundImage(item.getThumb(),imageView,10);
    }

}
